Finds the only item with the specified key value and throws an exception if there is not exactly one item with that key value.
'Declaration
Public Overridable Function FindSingle( _
ByVal As _
) As
public virtual FindSingle(
)
Parameters
- key
- The key value to search for.
Return Value
The item of the collection that contains the specified key value, if found.
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2